<html>
    <head>
        <link rel="stylesheet" href="/assets/css/metro-bootstrap.min.css">
        <link rel="stylesheet" href="/assets/css/metro-bootstrap-responsive.min.css">
        <link rel="stylesheet" href="/assets/css/iconFont.min.css">
        <script src="/assets/js/jquery/jquery.min.js"></script>
        <script src="/assets/js/jquery/jquery.widget.min.js"></script>
        <script src="/assets/js/metro.min.js"></script>
    </head>
    <body class="metro">
		<div class="container">

		<nav class="navigation-bar">
			<nav class="navigation-bar-content">
				<div class="element on-left-more">
					<a class="dropdown-toggle" href="#"><span class="icon-laptop"></span>&nbsp;&nbsp;Saral</a>
					<ul class="dropdown-menu place-left" data-role="dropdown">
						<li><a href="add">Add device</a></li>
						<li><a href="/index.php/allocations/add">Add allocations</a></li>
						<li><a href="#">Reports</a></li>
					</ul>
				</div>
		 
				<span class="element-divider"></span>
		 
				<div class="element place-right on-left-more">
					<a class="dropdown-toggle" href="#">
						<span class="icon-user on-left-more"></span>vivekpat@thoughtworks.com
					</a>
					<ul class="dropdown-menu place-right" data-role="dropdown">
						<li><a href="/index.php/usercontroller/viewdashboard">My dashboard</a></li>
						<li><a href="#">My profile</a></li>
						<li><a href=<?php echo site_url('signout')?>>Sign out</a></li>
					</ul>
				</div>
				<span class="element-divider place-right"></span>

				<div class="element place-right input-element">
					<form>
						<div class="input-control text">
							<input type="text" placeholder="Search...">
							<button class="btn-search"></button>
						</div>
					</form>
				</div>				
				
			</nav>
		</nav>
			
			<div class="grid show-grid">
				<div class="row">
					<div class="span12">
					
						<h1><a href="/index.php/devices/view"><i class="icon-arrow-left-3 fg-darker smaller"></i>&nbsp;&nbsp;</a><?php echo $devices['serail_id']?></h1>
						<div class="row">&nbsp;</div>
						<div class="row">
							<div class="span6"><h4><?php echo $devices['type']?></h4></div>
							<div class="span6 text-right">
							<form action="edit" method="post">
							<i class="icon-pencil on-left"></i><input type="hidden" name="id" value="<?php echo $devices['id']?>" />
							<input type="submit"value="Edit"/>
							</form>
						</div>
						</div>
							
						<div class="row">&nbsp;</div>
						<div class="row">
							<div class="span4">
								<img src="/assets/images/apple.png">
							</div>
							<div class="span8">
								<table class="table striped3n">
									<thead>
									</thead>
									<tbody>
										
										<tr>
											<td><h5>Device ID</h5></td>
											<td><?php echo $devices['id']?></td>
										</tr>
										<tr>
											<td><h5>Serial ID</h5></td>
											<td><?php echo $devices['serail_id']?></td>
										</tr>
										<tr>
											<td><h5>Invoice ID</h5></td>
											<td><?php echo $devices['invoice_id']?></td>
										</tr>
										<tr>
											<td><h5>Purchase Date</h5></td>
											<td><?php echo $devices['purchase_date']?></td>
										</tr>
										<tr>
											<td><h5>Waranty Expiry</h5></td>
											<td><?php echo $devices['waranty_expiry']?></td>
										</tr>
										<tr>
											<td><h5>Waranty Years</h5></td>
											<td><?php echo $devices['waranty_years']?></td>
										</tr>
										<tr>
											<td><h5>Type</h5></td>
											<td><?php echo $devices['type']?></td>
										</tr>
										<tr>
											<td><h5>Replacement Date</h5></td>
											<td><?php echo $devices['replacement_date']?></td>
										</tr>
										<tr>
											<td><h5>Disk</h5></td>
											<td><?php echo $devices['disk']?></td>
										</tr>
										<tr>
											<td><h5>Processor</h5></td>
											<td><?php echo $devices['processor']?></td>
										</tr>
										<tr>
											<td><h5>Memory</h5></td>
											<td><?php echo $devices['memory']?></td>
										</tr>
										<tr>
											<td><h5>Status</h5></td>
											<td><?php echo $devices['status']?></td>
										</tr>
										<tr>
											<td><h5>Region</h5></td>
											<td><?php echo $devices['region']?></td>
										</tr>
										<tr>
											<td><h5>Location</h5></td>
											<td><?php echo $devices['location']?></td>
										</tr>
										<tr>
											<td><h5>Comments</h5></td>
											<td><?php echo $devices['comments']?></td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
						
						
						<div class="row">&nbsp;</div>
						<div class="row">
							<div class="span6"><h4>View allocation history</h4></div>
							<div class="span6 text-right">&nbsp;</div>
						</div>
							
						<div class="row">&nbsp;</div>
						
						<table class="table striped3n">
							<thead>
								<tr>
									<th class="text-left">Allocated To</th>
									<th class="text-left">Allocation date</th>
									<th class="text-left">Status</th>
									<th class="text-left">Location</th>
									<th class="text-left">Comments</th>
								</tr>
							</thead>

							<tbody>
								<tr>
									<td>Employee name (12345)</td>
									<td>1 Jan 2014</td>
									<td>Active</td>
									<td>Pune</td>
									<td>Allocated by Pranesh</td>
								</tr>
							</tbody>

							<tfoot></tfoot>
						</table>
												
						
					</div>					
				</div>
							
				
			</div>		
			
		</div>		
		
    </body>
</html>